package org.example;

import org.example.entity.CustomerInfo;
import org.example.generator.DataGenerator;

import java.time.LocalDate;

/**
 * Test customer information generation
 */
public class TestCustomerInfo {
    
    public static void main(String[] args) {
        System.out.println("=== Customer Information Generation Test ===");
        
        // Generate 100 customers to test the distribution
        for (int i = 0; i < 100; i++) {
            CustomerInfo customer = DataGenerator.generateCustomerInfo(LocalDate.now());
            
            System.out.printf("Customer %d: Age=%d, Gender=%s, Education=%s, Occupation=%s, Marital=%s\n",
                i + 1,
                customer.getAge(),
                customer.getGender(),
                customer.getEducation(),
                customer.getOccupation(),
                customer.getMaritalStatus()
            );
        }
        
        System.out.println("\n=== Test Completed ===");
        System.out.println("Distribution should show:");
        System.out.println("- Gender: Male 75%, Female 25%");
        System.out.println("- Age: Normal distribution with 30-35 (35%), 35-40 (25%), etc.");
        System.out.println("- Education: College 30%, Vocational 15%, High School 20%, Bachelor 20%, Others 15%");
        System.out.println("- Occupation: Service 50%, Others 50%");
        System.out.println("- Marital: Married 65%, Single 25%, Others 10%");
    }
}




